# makefile for random library for Lua

# probably no need to change anything below here
CC= clang
CFLAGS= $(INCS) $(WARN) -std=c99 -O3 -fPIC $G
WARN= -ansi -pedantic -Wall -Wextra
INCS= -I$(LUAINC)
MAKESO= $(CC) -shared
#MAKESO= $(CC) -bundle -undefined dynamic_lookup

MYNAME= random_gen
MYLIB= l$(MYNAME)
T= $(MYNAME).so
OBJS= $(MYLIB).o
TEST= test.lua

all:	$T

o:	$(MYLIB).o

so:	$T

$T:	$(OBJS)
	$(MAKESO) -o $@ $(OBJS)

$(OBJS): random_gen.c


.PHONY: clean
clean:
	rm -f $(OBJS) $T 
